package com.thinkgem.jeesite.modules.book.entity;

import java.sql.Timestamp;

/**
 * Created by aulbrother on 2015/11/4.
 */
public class SvSchoolLink{
    private int id;
    private String schoolName;
    private String schoolLink;
    private String addUsername;
    private Timestamp addTime;
    private String updateUsername;
    private Timestamp updateTime;
    private String remarks;
    private String schoolAddress;
    private String schoolPhone;
    private String schoolOperator;

    public int getId(){
        return id;
    }

    public void setId(int id){
        this.id = id;
    }

    public String getSchoolName(){
        return schoolName;
    }

    public void setSchoolName(String schoolName){
        this.schoolName = schoolName;
    }

    public String getSchoolLink(){
        return schoolLink;
    }

    public void setSchoolLink(String schoolLink){
        this.schoolLink = schoolLink;
    }

    public String getAddUsername(){
        return addUsername;
    }

    public void setAddUsername(String addUsername){
        this.addUsername = addUsername;
    }

    public Timestamp getAddTime(){
        return addTime;
    }

    public void setAddTime(Timestamp addTime){
        this.addTime = addTime;
    }

    public String getUpdateUsername(){
        return updateUsername;
    }

    public void setUpdateUsername(String updateUsername){
        this.updateUsername = updateUsername;
    }

    public Timestamp getUpdateTime(){
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime){
        this.updateTime = updateTime;
    }

    public String getRemarks(){
        return remarks;
    }

    public void setRemarks(String remarks){
        this.remarks = remarks;
    }

    public String getSchoolAddress(){
        return schoolAddress;
    }

    public void setSchoolAddress(String schoolAddress){
        this.schoolAddress = schoolAddress;
    }

    public String getSchoolPhone(){
        return schoolPhone;
    }

    public void setSchoolPhone(String schoolPhone){
        this.schoolPhone = schoolPhone;
    }

    public String getSchoolOperator(){
        return schoolOperator;
    }

    public void setSchoolOperator(String schoolOperator){
        this.schoolOperator = schoolOperator;
    }

    @Override
    public boolean equals(Object o){
        if(this == o) return true;
        if(o == null || getClass() != o.getClass()) return false;

        SvSchoolLink that = (SvSchoolLink)o;

        if(id != that.id) return false;
        if(schoolName != null ? !schoolName.equals(that.schoolName) : that.schoolName != null) return false;
        if(schoolLink != null ? !schoolLink.equals(that.schoolLink) : that.schoolLink != null) return false;
        if(addUsername != null ? !addUsername.equals(that.addUsername) : that.addUsername != null) return false;
        if(addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if(updateUsername != null ? !updateUsername.equals(that.updateUsername) : that.updateUsername != null)
            return false;
        if(updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if(remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if(schoolAddress != null ? !schoolAddress.equals(that.schoolAddress) : that.schoolAddress != null) return false;
        if(schoolPhone != null ? !schoolPhone.equals(that.schoolPhone) : that.schoolPhone != null) return false;
        if(schoolOperator != null ? !schoolOperator.equals(that.schoolOperator) : that.schoolOperator != null)
            return false;

        return true;
    }

    @Override
    public int hashCode(){
        int result = id;
        result = 31 * result + (schoolName != null ? schoolName.hashCode() : 0);
        result = 31 * result + (schoolLink != null ? schoolLink.hashCode() : 0);
        result = 31 * result + (addUsername != null ? addUsername.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateUsername != null ? updateUsername.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (schoolAddress != null ? schoolAddress.hashCode() : 0);
        result = 31 * result + (schoolPhone != null ? schoolPhone.hashCode() : 0);
        result = 31 * result + (schoolOperator != null ? schoolOperator.hashCode() : 0);
        return result;
    }
}
